<?php

use Hyperf\Crontab\Crontab;

return [
    // 是否开启定时任务
    'enable' => true,
    'crontab' => [
        //发送消息到统计后台
        //(new Crontab())->setName('UploadDataTask')->setRule('*/5 * * * *')->setCallback([App\Task\UploadDataTask::class, 'execute'])->setMemo('发送消息到统计后台'),
        //发送推广链接到统计后台
        //(new Crontab())->setName('SpreaduploadTask')->setRule('1 * * * *')->setCallback([App\Task\SpreaduploadTask::class, 'execute'])->setMemo('发送推广链接到统计后台'),
        //每10秒数据
        (new Crontab())->setName('paymentStatisticsTask')->setRule('*/1 * * * *')->setCallback([App\Task\PaymentStatisticsTask::class, 'execute'])->setMemo('统计订单信息'),
        //
        (new Crontab())->setName('dayPaymentStatisticsTask')->setRule('10 0 * * *')->setCallback([App\Task\DayPaymentStatisticsTask::class, 'execute'])->setMemo('统计除今日之前的订单所有数据'),
        //更新订单是否为首充
       (new Crontab())->setName('UpdatePaymentTask')->setRule('*/20 * * * * *')->setCallback([App\Task\UpdatePaymentTask::class, 'execute'])->setMemo('统计订单是否为充首充'),
        //更新订单是否为首充
//        (new Crontab())->setName('DayUpdatePaymentTask')->setRule('05 17 * * *')->setCallback([App\Task\DayUpdatePaymentTask::class, 'execute'])->setMemo('统计订单是否为充首充'),
        //退款订单日期重新获取
        (new Crontab())->setName('RefundPaymentTask')->setRule('1 * * * *')->setCallback([App\Task\RefundPaymentTask::class, 'execute'])->setMemo('重新统计退款订单的日期'),

        //抖音订单发起分账
        (new Crontab())->setName('PaymentSettleTask')->setRule('*/20 * * * *')->setCallback([App\Task\PaymentSettleTask::class, 'execute'])->setMemo('抖音分账发起订单功能'),
        //抖音订单获取分账
        (new Crontab())->setName('CheckPaymentSettleTask')->setRule('*/5 * * * *')->setCallback([App\Task\CheckPaymentSettleTask::class, 'execute'])->setMemo('抖音查询分账订单功能'),
        //获取微信用户的观看记录
        (new Crontab())->setName('WxGetUserViewRecordsTask')->setRule('*/20 * * * * *')->setCallback([App\Task\WxGetUserViewRecordsTask::class, 'execute'])->setMemo('获取微信用户观看记录'),
        //获取抖音用户的观看记录
        (new Crontab())->setName('DyGetUserViewRecordsTask')->setRule('*/3 * * * *')->setCallback([App\Task\DyGetUserViewRecordsTask::class, 'execute'])->setMemo('获取微信用户观看记录'),
        //每个月创建日志表1号10秒执行一次
        (new Crontab())->setName('CreateViewTableTask')->setRule('10 0 1 * *')->setCallback([App\Task\CreateViewTableTask::class, 'execute'])->setMemo('创建用户观看记录表'),
        //5分钟一次抖音广告ECPM
        (new Crontab())->setName('RtecpmTask')->setRule('*/5 * * * *')->setCallback([App\Task\RtecpmTask::class, 'execute'])->setMemo('抖音广告ECPM'),
//        //一个小时 获取前一个小时的抖音广告ECPM
        (new Crontab())->setName('HourRtecpmTask')->setRule('1 * * * *')->setCallback([App\Task\HourRtecpmTask::class, 'execute'])->setMemo('抖音广告前一个小时ECPM'),
        //获取用户
        (new Crontab())->setName('UserStatisticsTask')->setRule('*/1 * * * *')->setCallback([App\Task\UserStatisticsTask::class, 'execute'])->setMemo('统计用户染色信息'),
        //
        (new Crontab())->setName('dayUserStatisticsTask')->setRule('11 0 * * *')->setCallback([App\Task\DayUserStatisticsTask::class, 'execute'])->setMemo('统计除今日之前的用户所有数据'),
        //临时调用
//        (new Crontab())->setName('TemporaryPaymentTask')->setRule('50 14 * * *')->setCallback([App\Task\TemporaryPaymentTask::class, 'execute'])->setMemo('统计除今日之前的用户所有数据'),
        //临时调用
        //(new Crontab())->setName('CpsStatisticsTask')->setRule('45 16 * * *')->setCallback([App\Task\CpsStatisticsTask::class, 'execute'])->setMemo('统计CPS'),

    ],
];